.input {
	height: $input-height;
	max-width: 100%;
	padding: 0 2px;
	line-height: $input-height + 1;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-color: $color-input-border;
	box-shadow: 0 1px 2px rgba(0,0,0,.2) inset;
	outline: none;

	&[disabled] {
		color: $color-text-disabled;
		background: lighten($color-text-disabled, 28%);
	}
}

textarea.input {
	height: auto;
	min-height: $input-height;
	line-height: 1.6;
}

input[type="file"].input {
	height: auto;
	padding: 0;
}

label {
	font-size: 13px;
	user-select: none;

	+ label {margin-left: $label-space;}

	> input {
		vertical-align: -2px;
		&[disabled] + span {color: $color-text-disabled;}
	}
}

select {
	$color: darken($color-thead, 1%);

	&, &:active {
		background-color: $color;
		background-image: linear-gradient(lighten($color, 5%) 0, darken($color, 3%) 90%, $color);
	}

	&:focus {border-color: desaturate($color-highlight, 20%);}

	&.btn {
		padding: 0 $input-height / 2 / 2;
		color: $color-font;
	}

	option {background: #fff;}
}
